﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BLToolkit.DataAccess;
using BLToolkit.Mapping;
using DAL;

namespace Entities
{
    [TableName("MonHoc")]
    public class MonHoc:BaseEntity<MonHoc>
    {
        [MapField("MaMH"), PrimaryKey]
        public string MaMH { get; set; }
        [MapField("TenMH")]
        public string TenMH { get; set; }        
        [MapField("SoTCLT")]
        public int SoTCLT { get; set; }
        [MapField("SoTCTH")]
        public int SoTCTH { get; set; }        
        [MapField("BatBuoc")]        
        public bool BatBuoc { get; set; }

        [MapIgnore]
        public int STC
        {
            get { return SoTCLT + SoTCTH; }
        }
        
    }
    
}
